package com.bjesc_b2c.app.appraiset.adapter;

import android.content.Context;

import com.bjesc_b2c.app.appraiset.R;
import com.bjesc_b2c.app.appraiset.bean.CompleteOrderBean;

import java.util.List;

import app.pinggushi.bjesc.com.baserecyclerview.adapter.CommonAdapter;
import app.pinggushi.bjesc.com.baserecyclerview.adapter.base.ViewHolder;

/**
 * Created by yidong on 2017/8/8.
 */

public class CompleteOrderAdapter extends CommonAdapter<CompleteOrderBean> {

    public CompleteOrderAdapter(Context context, int layoutId, List<CompleteOrderBean> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convertView(ViewHolder holder, CompleteOrderBean bean, int position) {
        holder.setFrescoUrl(R.id.sv_car_photo,bean.getImg(),true);
        holder.setText(R.id.cc_name, bean.getTou_name()+"( 订单号"+bean.getDispatch_id()+")");
        holder.setText(R.id.tv_car_name, bean.getTitle());
        holder.setText(R.id.tv_dealer_name, bean.getDealer_name());
        holder.setText(R.id.tv_car_id, bean.getCar_id());
        holder.setText(R.id.tv_complete_time, bean.getComplete_time());
    }
}
